package com.pm.buglist.mapper;

import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pm.buglist.domain.WavieOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * waive单申请记录表 Mapper 接口
 * </p>
 *
 * @author wwm
 * @since 2024-06-19
 */
@Mapper
public interface WavieOrderMapper extends BaseMapper<WavieOrder> {

   int updateWaiveOrderByBid(WavieOrder wavieOrder);

   List<JSONObject> getProjectListByWaiveOrder();

   /**
    * 验证bug是否已经推送oa系统(查询的是已推送过的数据)
    * @param bids
    * @return
    */
   List<WavieOrder> ifPutOaWaive(@Param("bids") List<Long> bids);

}
